package com.cwj.service;

import com.cwj.pojo.*;

import java.util.List;

/**
 * @author ACER
 */
public interface NetworkService {

    /**
     *
     * @param user
     * @return
     */
    boolean login(User user);

    /**
     *
     * @return
     */
    List<Message> getMessage();

    /**
     *
     * @param message
     */
    void saveMessage(String message);

    /**
     *
     * @param account
     * @param password
     * @return
     */
    User getUser(String account, String password);

    /**
     *
     * @param account
     * @param password
     * @return
     */
    Admin getAdmin(String account, String password);

    User getTest(String account);

    void updata(User user);

    Users getUsers(int uid);

    void updataUsers(Users users);

    void setMessage(String message);

    List<User02> numSQL(String uid);

    List<User02> strSQL(String uid);

    User03 user03Login(String username, String password);

    User03 getUser03(String username);
}
